import Mock from "mockjs";
import homeApi from "../mock/home";
import userApi from "../mock/user";
import PermissionApi from "../mock/permission";

// 拦截接口
//首页获取数据的接口
Mock.mock(/home\/getData/, homeApi);
//  用户管理获取表格数据
Mock.mock(/user\/getUser/, userApi.getUserList);
//
// 新增用户信息
Mock.mock(/user\/createUser/, "post", userApi.createUser);
// 登录账号
Mock.mock(/permission\/LoginApi/, "post", PermissionApi.LoginApi);
